﻿import mx.rpc.http.HTTPService;
import mx.rpc.events.ResultEvent;

import mx.managers.PopUpManager;
import mx.collections. *;
import mx.controls. *;
import com.esri.ags.Map;
import com.esri.ags.geometry.Extent;
import com.uprr.app.tnm.model.Model;
import com.uprr.app.tnm.events.AppEvent;

import com.adobe.serialization.json.JSON

private function handleCreationComplete () : void 
{
	// Center the TitleWindow container
	// over the control that created it.
	PopUpManager.centerPopUp (this);
	this.showCloseButton=true;
}

 
// when something goes wrong for all HTTP services
private function serviceFaultHandler (event : Event) : void
{
	var errorEvent : AppEvent = new AppEvent (AppEvent.APP_ERROR);
		errorEvent.data = "Error when adding bookmarks.";
		errorEvent.dispatch ();
}
